package cn.hwadee.muying.service;

import cn.hwadee.muying.entity.Building;
import cn.hwadee.muying.mapper.BuildingMapper;
import cn.hwadee.muying.commons.base.BaseService;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import cn.hwadee.muying.commons.page.MyPage;
import cn.hwadee.muying.entity.User;
import java.util.List;

/**
 * <p>
 * 设备 服务实现类
 * </p>
 *
 * @author Mankind
 * @since 2018-07-18
 */
@Service
public class BuildingService extends BaseService<BuildingMapper, Building> {

    @Autowired
    private BuildingMapper buildingMapper;


    public MyPage<Building> list(MyPage<Building> page, User cUser,String keyword) throws Exception{
        List<Building> buildings = buildingMapper.list(page,cUser,keyword);
        page.setRecords(buildings);
        return page;
    }

}
